package com.example.commentservice.entity;

import java.io.Serial;
import java.util.Date;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
/**
 * (Comment)表实体类
 *
 * @author makejava
 * @since 2024-03-23 14:34:31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("comment")
public class Comment implements Serializable {
    @Serial
    private static final long serialVersionUID = -8151140282884800849L;
    //主键@TableId
    @TableId(type = IdType.AUTO)
    private Long cid;

    //评论内容
    private String content;
    //发表时间
    private Date createtime;
    //评论人
    private Long uid;
    //回复评论id，如果没有则为0
    private Long pid;
    //发布评论所用时间
    private Integer usetime;
    //文章
    private Long aid;



}

